package com.halden.TRPG.common;

public class MyException extends RuntimeException implements java.io.Serializable {
    private static final long serialVersionUID = 1L;
    /*
     * 模版异常
     */
    private CodeEnum codeEnum;

    public MyException(CodeEnum codeEnum){
        this.codeEnum = codeEnum;
    }


    public CodeEnum getCodeEnum() {
        return codeEnum;
    }

    public String getErrorMessage() {
        return codeEnum.getMessage();
    }
}
